package com.zwps.biz.api.model.vo.region;

import io.swagger.v3.oas.annotations.media.Schema;
import lombok.Getter;
import lombok.Setter;

import java.time.LocalDateTime;
import java.util.List;

import com.zwps.common.tool.tree.Trees;

/**
 * @author shanwen
 * @description:
 * @date 2023-08-17
 * @ClassName RegionTreeVO
 */
@Schema(description = "行政区划树")
@Getter
@Setter
public class RegionTreeVO extends Trees<String,Void,RegionTreeVO> {


    @Schema(description = "id")
    private String id;

    /**
     * 区划编码
     */
    @Schema(description = "区划编码")
    private String regionCode;

    /**
     * 上级区划编码
     */
    @Schema(description = "上级区划编码")
    private String parentRegionCode;

    /**
     * 行政区划名称
     */
    @Schema(description = "行政区划名称")
    private String regionName;

    /**
     * 上级区划编码集
     */
    @Schema(description = "上级区划编码集")
    private String parentRegionCodes;

    /**
     * 子集
     */
    @Schema(description = "子集")
    private List<RegionTreeVO> children;

    /**
     * 创建用户
     */
    @Schema(description = "创建用户")
    private String createBy;

    /**
     * 创建时间
     */
    @Schema(description = "创建时间")
    private LocalDateTime createTime;

    /**
     * 修改用户
     */
    @Schema(description = "修改用户")
    private String updateBy;

    /**
     * 修改时间
     */
    @Schema(description = "修改时间")
    private LocalDateTime updateTime;
}
